﻿namespace Infrastructure.Model
{
    public class LoginUser
    {
        public string UserId { get; set; }

        public string UserName { get; set; }

        public string Dept { get; set; }

        public string Token { get; set; }

        public List<string> GroupIds { get; set; }

        public List<string> Permissions { get; set; }

        public List<string> Locations { get; set; }

        public List<UserDeptLocation> DeptLocations { get; set; }

        public List<GroupDetail> GroupDetails { get; set; }

        public LoginUser()
        {
        }

        public LoginUser(string userId, string userName)
        {
            UserId = userId;
            UserName = userName;
        }

        public LoginUser(string userId, string userName, string dept, List<string> roleIds, List<string> permissions, List<string> locations, List<UserDeptLocation> deptLocations, List<GroupDetail> groupDetails)
        {
            UserId = userId;
            UserName = userName;
            Dept = dept;
            GroupIds = roleIds;
            Permissions = permissions;
            Locations = locations;
            DeptLocations = deptLocations;
            GroupDetails = groupDetails;
        }
    }
}

